import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/office_record/` + url, ...arg)

export default {

	async queryList(data) {
		return await request('list', data, 'post')
	},
	async save(data){
		return await request('save', data, 'post')
	},
	async getById(data){
		return await request('get_by_id', data, 'post')
	},
	async removeById(id){
		return await request('remove_by_id', {id}, 'post')
	},
	async saveContent(data){
		return await request('content/save', data, 'post')
	},
	async getContentByOfficeId(data){
		return await request('content/get_by_office_id', data, 'post')
	}

}
